<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">

<html>
<head>
  <meta name="generator" content="notepad">
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  <meta name="description" content="<?php echo input(strip_tags($conf['Pavadinimas']).' - '.trimlink(strip_tags($conf['Apie']),120)); ?>">
  <meta name="keywords" content="<?php echo input(strip_tags($conf['Keywords'])); ?>">
  <meta name="author" content="<?php echo input(strip_tags($conf['Copyright'])); ?>">
  <link rel="stylesheet" type="text/css" href="stiliai/<?php echo input(strip_tags($conf['Stilius'])); ?>/default.css">
  <link rel="stylesheet" type="text/css" href="stiliai/system.css">
  <link rel="shortcut icon" href="favicon.ico" />
  
  <title><?php echo input(strip_tags($conf['Pavadinimas']).' - '.$page); ?></title>
  
  <script language="javascript" type="text/javascript" src="javascript/swfobject.js"></script>
  <script language="javascript" type="text/javascript" src="javascript/scriptaculous/lib/prototype.js"></script>
  <script language="javascript" type="text/javascript" src="javascript/scriptaculous/src/scriptaculous.js"></script>
  <script language="javascript" type="text/javascript" src="javascript/pagrindinis.php"></script>
  
  <?php if ($id == 46 || $id == 8) { ?>
  <script language="javascript" type="text/javascript" src="javascript/htmlarea/tiny_mce/tiny_mce.js"></script>
  <?php } ?>
</head>

<body>
<NOSCRIPT>
 <?php klaida("Klaida","Prašome įjunkite javascript palaikymą"); ?>
 <meta http-equiv="refresh" content="0;url=javascript.html">
</NOSCRIPT>

<script language="javascript" type="text/javascript" src="javascript/hl/shCore.js"></script>
<script language="javascript" type="text/javascript" src="javascript/hl/shBrushPhp.js"></script>
<script language="javascript" type="text/javascript" src="javascript/hl/shBrushJScript.js"></script>
<script language="javascript" type="text/javascript" src="javascript/hl/shBrushSql.js"></script>
<script language="javascript" type="text/javascript" src="javascript/hl/shBrushXml.js"></script>
<script language="javascript" type="text/javascript" src="javascript/hl/shBrushCss.js"></script>
<script language="javascript" src="javascript/boxover.js" type="text/javascript"></script>
<div class="main">
  <table width="100%" border="0">
    <tr>
      <td colspan="2">
	<!--<h4><?=$conf['Pavadinimas']?></h4> -->
       <a href="/"><img src="stiliai/<?php echo $conf['Stilius']; ?>/images/468_60.png" alt="<?=$conf['Pavadinimas']?>" border="0"/></a>
      </td>
    </tr>
    <tr>
      <td width="180" valign="top">
			<?php
			$sql_p = mysql_query1("SELECT SQL_CACHE * FROM `".LENTELES_PRIESAGA."panel` WHERE `align`='L' ORDER BY `place` ASC");
			while ($row_p = mysql_fetch_assoc($sql_p)) {
				if (is_file("paneles/".$row_p['file'])) { 
				include ("paneles/".$row_p['file']);
					if (!isset($title)) { $title = $row_p['panel']; }
					if ($row_p['show'] == 'Y' && isset($text) && !empty($text)) {
						lentele_l($title,$text); unset($title,$text);
					}
					elseif (isset($text) && !empty($text)) { 
						echo $text;
						unset($text);
					}
				}
				else { echo lentele_l("Klaida","Tokios paneles nera",$row_p['file']); }
			}
			unset($sql_p,$row_p);
			?>

		</td>
      <td valign="top">
		<div class="title">Šiuo metu svetainėje: <?=$online?></div>
		<div class="vidus">
		<?php
			if (!isset($_SESSION['username'])) {
			 	lentele($conf['Pavadinimas'],$conf['Apie']);
			}
			include("".$page.".php");
		?>
		</div>
		<?php hide("Reklama","<a href='http://www.mrcbug.com' target='_blank' title='Coders - atviras kodas Lietuvai'><img src='http://www.mrcbug.com/mrcbug.gif' border='0' alt='mrcbug.com' align='left' hspace='10'/></a> <textarea rows=\"3\" style=\"width: 300px;\">&lt;a href='http://www.mrcbug.com' target='_blank' title='Coders - atviras kodas Lietuvai'&gt;&lt;img src='http://www.mrcbug.com/mrcbug.gif' border='0' alt='mrcbug.com' /&gt;&lt;/a&gt;</textarea>",true,"Mūsų 88x31px baneris"); ?>
	  </td>
	  <td width="180" valign="top">
			<?php
			$sql_p = mysql_query1("SELECT SQL_CACHE * FROM `".LENTELES_PRIESAGA."panel` WHERE `align`='R' ORDER BY `place` ASC");
			while ($row_p = mysql_fetch_assoc($sql_p)) {
				if (is_file("paneles/".$row_p['file'])) { 
				include ("paneles/".$row_p['file']);
					if (!isset($title)) { $title = $row_p['panel']; }
					if ($row_p['show'] == 'Y' && isset($text) && !empty($text)) {
						lentele_r($title,$text); unset($title,$text);
					}
					elseif (isset($text) && !empty($text)) { 
						echo $text;
						unset($text);
					}
				}
				else { echo lentele_r("Klaida","Tokios paneles nera",$row_p['file']); }
			}
			unset($sql_p,$row_p);
			?>
  		</td>
    </tr>
  </table>
</div>
<?php copyright($conf['Copyright']);?>
<script class="javascript">dp.SyntaxHighlighter.HighlightAll('code');</script>

</body>
</html>
